﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WebApp.Models;

namespace WebApp.ViewModels.Manage
{
    [Serializable]
    public class SessionUserModel
    {
        public int Id { get; set; }
        public string Username { get; set; }
        public string Realname { get; set; }
        //public string Islocked { get; set; }
        //public string Ischangepwd { get; set; }
        //public string Clientid { get; set; }
        public string Language { get; set; }

        public SessionUserModel(S_user user)
        {
            this.Id = user.Id;
            this.Username = user.Username;
            this.Realname = user.Realname;
            //this.Islocked = user.Islocked;
            //this.Ischangepwd = user.Ischangepwd;
            //this.Clientid = user.Clientid;
            this.Language = "zh_cn";
        }
    }
}
